package com.api.shopapi.service;

import com.api.shopapi.entity.Seats;
import com.api.shopapi.entity.dto.SeatsDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface SeatsService {

    int insert(Seats seats);

    int update(Seats seats);

    Seats getBySeatsCode(String seatsCode);

    Seats getByUserCode(String userCode);

    Seats getByStaffCode(String staffCode);

    Seats getByPhone(String phone);

    Seats getByGovernmentCode(String governmentCode);

    List<Seats> getList();

    PageInfo<SeatsDTO> getPageInfo(int pageNum, int pageSize);

}
